/*
 * SilkXMLBasic.java
 * @author david
 */
package org.puresilk.afx.xmlbeans;

import org.jdom.Element;
import org.jdom.output.XMLOutputter;

/**
 * SilkXMLBasic
 *
 */
public class SilkXMLBasic implements XMLBean {

	private Element el = null;
	
	public SilkXMLBasic() {}
	public SilkXMLBasic(Element xml){
		from_xml(xml);
	}
	
	public void from_xml(Element xml) {
		el = xml;
	}

	public Element to_xml() {
		return el;
	}

	public Element to_xml_node() {
		return to_xml();
	}
	
	/**
	 * convert to XML text...
	 */
	public String toString(){
		XMLOutputter xo = new XMLOutputter();

		// output xml
		return xo.outputString(to_xml());		
	}
}
